package cn.com.jslh.boarpro.util.search;

/**
 * Created by Administrator on 2017/11/10.
 */

public class SearchItemFactory {
    public static Object getSearchItem(Class<?extends SearchItem> c){
        Object searchItem = null;
        try {
            searchItem =  Class.forName(c.getName()).newInstance();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
        return  searchItem;
    }
}
